# Monitor Collector is running
#Path='/home/default/Collector/PortableCollector -qws'
Path='PortableCollector'

while test "1"="1";do
	Result=`pgrep $Path`
	if [ ! $Result];then
		/home/default/Collector/PortableCollector -qws
		echo "Not Running"
		echo $Result
	else
		echo "Running"
		echo $Result
	fi
	sleep 1
done

